package cn.dcw.pethome.org.domain;

import cn.dcw.pethome.basic.domain.BaseDomain;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/*
部门管理
 */
@Data//这个注解相当于getter setter toString....
public class Department extends BaseDomain<Department>{

    /*部门编号*/
    private String sn;
    /*部门名称*/
    private String name;
    /*父级的路径*/
    private String dirPath;
    /*部门状态 0 正常 ，-1 停用*/
    private int state;
    //private Long manager_id;
    private Employee employee;//员工对象-部门领导
    //private Long parent_id;
    private Department department;//部门对象-上级部门

    private List<Department> children=new ArrayList<>();//一对多-子级

    public Department() {
    }

}
